home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3478 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: merlin.hgc.edu!weat4122
  3. From: weat4122@hgc.edu (gerard weatherby)
  4. Subject: Re: Classes in DLL's
  5. Message-ID: <1996Jan24.042026.22231@merlin.hgc.edu>
  6. Sender: weat4122@hgc.edu
  7. Organization: The Hartford Graduate Center
  8. References: <4dpbv4$c0i@news1.usa.pipeline.com>
  9. Date: Wed, 24 Jan 1996 04:20:26 GMT
  10.  
  11. In article <4dpbv4$c0i@news1.usa.pipeline.com> grantp@usa.pipeline.com(Pete) writes:
  12. >On Jan 19, 1996 20:05:35 in article <Classes in DLL's>,
  13. >'jtoering@vnet.ibm.com' wrote: 
  14. >>I am familiar with how to import functions from 
  15. >>DLL's but how do you import class methods? 
  16. >> 
  17. >This depends on your compiler system.  They all 
  18. >are similar in that you need to export your classes 
  19. >as well as individual member functions.  Your compiler 
  20. >documentation should describe how it is done. 
  21. >Be aware that DLL's that export classes -- or any C++ 
  22. >symbols, for that matter -- are usable only by callers 
  23. >that are compiled with the same vendor's compiler. 
  24. >-- 
  25. >Pete Grant 
  26. >Kalevi, Inc. 
  27. >Object Oriented Software Development
  28.  
  29. Generally (Borland and Visual) you use the keyword _export or __export.
  30. Some versions of Borland allow a single _export statement (after the 
  31. keyword class, as I recall) to export all functions of the class.
  32.